IF (((IDF_VERSION_MAJOR EQUAL 4) AND (IDF_VERSION_MINOR GREATER 3)) OR (IDF_VERSION_MAJOR GREATER 4))
file(GLOB_RECURSE DEMO_SOURCES *.c)
ELSE()
set(DEMO_SOURCES "")
ENDIF()

#set(APP_DIR ./app)
#file(GLOB_RECURSE APP_SRCS ${APP_DIR}/*.c)

idf_component_register(
    SRCS
        ${DEMO_SOURCES} ai_toys.c
        ${APP_SRCS}
    INCLUDE_DIRS
        "."
       ${APP_DIR}
)

# Some of warinings from LVGL. Block them.
target_compile_options(${COMPONENT_LIB} PRIVATE -w)
